package com.sllp.C71S3TsllpShop.biz.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sllp.C71S3TsllpShop.bean.Address;
import com.sllp.C71S3TsllpShop.bean.AddressExample;
import com.sllp.C71S3TsllpShop.bean.AddressExample.Criteria;
import com.sllp.C71S3TsllpShop.biz.AddressBiz;
import com.sllp.C71S3TsllpShop.dao.AddressMapper;

@Service
public class AddressBizImpl implements AddressBiz {

	@Resource
	private AddressMapper am;
	
	/**
	 * 修改地址信息
	 */
	public int updateAdrMsg(int id){
		Address address=new Address();
		AddressExample ae=new AddressExample();
		Criteria c=ae.createCriteria();
		c.andIdEqualTo(id);
		int ok=am.updateByExample(address, ae);
		return ok;
	}
}
